package gov.pbc.nn.kjgl.webService.endpoint;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "taskRequest", namespace = taskEndpoint.namespace)
@XmlAccessorType(XmlAccessType.FIELD)
public class taskRequest {
	@XmlElement(name = "documentNum", namespace = taskEndpoint.namespace)
	private String documentNum;

	@XmlElement(name = "documentDate", namespace = taskEndpoint.namespace)
	private Date documentDate;

	@XmlElement(name = "documentOrg", namespace = taskEndpoint.namespace)
	private String documentOrg;

	@XmlElement(name = "documentMark", namespace = taskEndpoint.namespace)
	private String documentMark;

	@XmlElement(name = "documentType", namespace = taskEndpoint.namespace)
	private String documentType;

	@XmlElement(name = "urgency", namespace = taskEndpoint.namespace)
	private String urgency;

	@XmlElement(name = "secret", namespace = taskEndpoint.namespace)
	private String secret;

	@XmlElement(name = "pageCount", namespace = taskEndpoint.namespace)
	private Integer pageCount;

	@XmlElement(name = "copiesCount", namespace = taskEndpoint.namespace)
	private Integer copiesCount;

	@XmlElement(name = "title", namespace = taskEndpoint.namespace)
	private String title;

	@XmlElement(name = "documentUser", namespace = taskEndpoint.namespace)
	private String documentUser;

	@XmlElement(name = "sponsorDept", namespace = taskEndpoint.namespace)
	private String sponsorDept;

	@XmlElement(name = "jointlyDept", namespace = taskEndpoint.namespace)
	private String jointlyDept;

	@XmlElement(name = "circulateDept", namespace = taskEndpoint.namespace)
	private String circulateDept;

	@XmlElement(name = "remark", namespace = taskEndpoint.namespace)
	private String remark;

	@XmlElement(name = "branchOpinion", namespace = taskEndpoint.namespace)
	private String branchOpinion;

	@XmlElement(name = "leaderOpinion", namespace = taskEndpoint.namespace)
	private String leaderOpinion;

	@XmlElement(name = "sponsorDeptOpinion", namespace = taskEndpoint.namespace)
	private String sponsorDeptOpinion;

	@XmlElement(name = "JointlyDeptOpinion", namespace = taskEndpoint.namespace)
	private String JointlyDeptOpinion;

	@XmlElement(name = "circulateDeptOpinion", namespace = taskEndpoint.namespace)
	private String circulateDeptOpinion;

	@XmlElement(name = "taskUser", namespace = taskEndpoint.namespace)
	private String taskUser;

	@XmlElement(name = "taskDpet", namespace = taskEndpoint.namespace)
	private String taskDpet;

	@XmlElement(name = "attachments", namespace = taskEndpoint.namespace)
	private List<attachment> attachments;

	public String getDocumentNum() {
		return documentNum;
	}

	public void setDocumentNum(String documentNum) {
		this.documentNum = documentNum;
	}

	public Date getDocumentDate() {
		return documentDate;
	}

	public void setDocumentDate(Date documentDate) {
		this.documentDate = documentDate;
	}

	public String getDocumentOrg() {
		return documentOrg;
	}

	public void setDocumentOrg(String documentOrg) {
		this.documentOrg = documentOrg;
	}

	public String getDocumentMark() {
		return documentMark;
	}

	public void setDocumentMark(String documentMark) {
		this.documentMark = documentMark;
	}

	public String getDocumentType() {
		return documentType;
	}

	public void setDocumentType(String documentType) {
		this.documentType = documentType;
	}

	public String getUrgency() {
		return urgency;
	}

	public void setUrgency(String urgency) {
		this.urgency = urgency;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public Integer getPageCount() {
		return pageCount;
	}

	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}

	public Integer getCopiesCount() {
		return copiesCount;
	}

	public void setCopiesCount(Integer copiesCount) {
		this.copiesCount = copiesCount;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDocumentUser() {
		return documentUser;
	}

	public void setDocumentUser(String documentUser) {
		this.documentUser = documentUser;
	}

	public String getSponsorDept() {
		return sponsorDept;
	}

	public void setSponsorDept(String sponsorDept) {
		this.sponsorDept = sponsorDept;
	}

	public String getJointlyDept() {
		return jointlyDept;
	}

	public void setJointlyDept(String jointlyDept) {
		this.jointlyDept = jointlyDept;
	}

	public String getCirculateDept() {
		return circulateDept;
	}

	public void setCirculateDept(String circulateDept) {
		this.circulateDept = circulateDept;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getBranchOpinion() {
		return branchOpinion;
	}

	public void setBranchOpinion(String branchOpinion) {
		this.branchOpinion = branchOpinion;
	}

	public String getLeaderOpinion() {
		return leaderOpinion;
	}

	public void setLeaderOpinion(String leaderOpinion) {
		this.leaderOpinion = leaderOpinion;
	}

	public String getSponsorDeptOpinion() {
		return sponsorDeptOpinion;
	}

	public void setSponsorDeptOpinion(String sponsorDeptOpinion) {
		this.sponsorDeptOpinion = sponsorDeptOpinion;
	}

	public String getJointlyDeptOpinion() {
		return JointlyDeptOpinion;
	}

	public void setJointlyDeptOpinion(String jointlyDeptOpinion) {
		JointlyDeptOpinion = jointlyDeptOpinion;
	}

	public String getCirculateDeptOpinion() {
		return circulateDeptOpinion;
	}

	public void setCirculateDeptOpinion(String circulateDeptOpinion) {
		this.circulateDeptOpinion = circulateDeptOpinion;
	}

	public String getTaskUser() {
		return taskUser;
	}

	public void setTaskUser(String taskUser) {
		this.taskUser = taskUser;
	}

	public String getTaskDpet() {
		return taskDpet;
	}

	public void setTaskDpet(String taskDpet) {
		this.taskDpet = taskDpet;
	}

	public List<attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<attachment> attachments) {
		this.attachments = attachments;
	}

	public String toString() {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日");
		return "收文编号：" + this.documentNum + "        收文日期：" + sdf.format(this.documentDate) + "\r\n" 
	         + "来文机关：" + this.documentOrg + "        来文字号：" + this.documentMark + "        来文文种：" + this.documentType + "\r\n" 
			 + "缓急：" + this.urgency + "        密级：" + this.secret + "        页数：" + this.pageCount + "        份数：" + this.copiesCount + "\r\n" 
	         + "标题：" + this.title + " \r\n" 
			 + "收文员：" + this.documentUser + "\r\n" 
	         + "主办部门：" + this.sponsorDept + "\r\n"
			 + "会办部门：" + this.jointlyDept + "\r\n" 
	         + "传阅部门：" + this.circulateDept + "\r\n" 
			 + "备注：" + this.remark	+ "\r\n" 
	         + "分办意见：" + this.branchOpinion + "\r\n" 
			 + "行级领导批示意见：" + this.leaderOpinion.replaceAll("\n", "\n        ") + "\r\n"
			 + "主办部门办理意见：" + this.sponsorDeptOpinion.replaceAll("\n", "\n        ") + "\r\n"
			 + "会办部门办理意见：" + this.JointlyDeptOpinion.replaceAll("\n", "\n        ") + "\r\n"
			 + "传阅部门办理意见：" + this.circulateDeptOpinion.replaceAll("\n", "\n        ") + "\r\n";
	}
}
